package part1.api.file.filetest;

import java.io.File;
import java.io.IOException;

public class Test1 {
    public static void main(String[] args) throws IOException {
        //在当前项目目录下新建100个文件，名字为:"1.txt"---"100.txt"
        for (int i = 1; i <= 100; i++) {
            File file = new File(i+".txt");
            if (!file.exists()){
                file.createNewFile();
            }
        }
    }
}
